#ifndef MESSAGEPARSER_H_
#define MESSAGEPARSER_H_

#include <map>
#include <string>
#include <cstdlib>
#include <utility>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xmlmemory.h>

#include "Message.h"
#include "E_MessageType.h"
#include "../../util/exception/ParsingException.h"

using std::string;
using std::multimap;

class MessageParser {
public:
	static Message parseRequestMessage(const string& strmessage);
	static string
			parseResponseMessage(const multimap<string, string>& contents);
};

#endif /* MESSAGEPARSER_H_ */
